<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
	<base href="<%=basePath%>">
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<!-- basic styles -->
	<link rel="stylesheet" href="assets/css/bootstrap.min.css" />
	<link rel="stylesheet" href="assets/css/bootstrap-responsive.min.css" />
	<link rel="stylesheet" href="assets/css/font-awesome.min.css" />
	<link rel="stylesheet" href="assets/css/ui.jqgrid.css" />
</head>
<body>
	<form id="addForm" action="user/mailFormat.do" method="post">
		<div class="main_right main_marginleft">
				<h4>邀请函设置</h4>
				<label class="yulan">预览</label>
				<div class="setting">
			您好:<br>
			您被邀请参加一个直播活动。<br>
	<br>
			直播主题：XXX<br>
			在PC、Mac、iPhone/iPad、安卓手机/平板上，点击下面链接即可轻松加入直播：<br>
			http://XXXXXXXXXXXXXX/Live/live/888<br>
	<br>
			直播介绍:XXX<br>
			<textarea id="txt1" disabled="disabled">
如需购买，请联系销售人员：400-021-3822

----------------------
2016上海盟视信息科技有限公司
			</textarea>
				</div>
				<label class="yulan">修改</label>
				<textarea class="setting_textarea" id="txt" name="mailFormat" onKeyUp="DivFollowingText()">${mailFormat}
				</textarea>
				<p class="zhu">注：如需换行,请后面加上<span>&lt;br&gt;</span>!</p>
				<div class="setting_button"><button onclick="edit();">保存</button>
				<button  onclick="window.close();">返回</button></div>
			</div>
			<input value="${ id }" type="hidden" name="id">
	</form>
<script type="text/javascript" src="assets/js/jquery-1.10.2.min.js"></script>
	<!-- 引入 -->
	<script type="text/javascript">
		function edit() {
			$("#addForm").submit();
		};
		function DivFollowingText()
		{
			document.getElementById("txt1").value=document.getElementById("txt").value;
		}
	</script>
</body>
</html>